import { request } from '../request/request.js'
// 用户个人信息
export const GetUser = () => {
    return request.get('/user');
}
// 个人资料修改
export const PutUserData = (itemFrom) =>{
	return request.put('/user/updateInfo',itemFrom)
}
// 获取用户咨询订单 
export const getConsultationOrder = (userId) =>{
	return request.get(`/customized/index?user_id=${userId}`)
}

//获取用户酒旅收藏数据
export const getHotelFavorites = (userId) =>{
	return request.get(`/tripshop/myshopcollect?user_id=${userId}`)
}


// 用户权限检测
export const getPermissions = (userId) =>{
	return request.get(`/userDetect?id=${userId}`)
}